<?php

/**
 * Comentarios form.
 *
 * @package    form
 * @subpackage Comentarios
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class ComentariosForm extends BaseComentariosForm
{
	public function configure()
	{
		parent::configure();
                unset($this['id_usuario']);
		
//		$this->widgetSchema['id_usuario'] = new sfWidgetFormDoctrineChoice(
//			array('model' => 'DadosUsuario', 'add_empty' => '[-- Selecione --]')
//		);

//		$this->widgetSchema['id_item'] = new sfWidgetFormDoctrineChoice(
//			array('model' => 'Item', 'add_empty' => '[-- Selecione --]')
//		);
//		$this->widgetSchema['created_at'] = new sfWidgetFormInput(
//			array(), array('class'=>"is_date_picker")
//		);
//		$this->widgetSchema['updated_at'] = new sfWidgetFormInput(
//			array(), array('class'=>"is_date_picker")
//		);
		
		$this->widgetSchema->setLabels(array(
			'id_comentario' => '#ID',
                        'id_usuario'    => 'Usuário',
                        'ds_comentario' => 'Opinião',
                        'pb_comentario' => 'Publicado',
                        'id_item'       => 'Item',
                        'created_at'    => 'Criado em',
                        'updated_at'    => 'Atualizado em'
		));
	}
}